<template>
  <div class="home">
    <ul class="list">
      <li v-for="(item,index) in list" :key="index">
        <router-link :to="item.url">{{ item.text }}
          <lbr-icon type='lbr-icon-arrow-right' :size='10' color='#000'></lbr-icon>
        </router-link>
      </li>
    </ul>


  </div>
</template>

<script>
export default {
  name: "home",
  data() {
    return {
      list: [
        {
          text: "Icon",
          url: "icon"
        },
        {
          text: "Button",
          url: "button"
        },
        {
          text: "Switch",
          url: "switch"
        },
        {
          text: "Input",
          url: "input"
        },
        {
          text: "Scroll",
          url: "scroll"
        },
        {
          text: "Swipe",
          url: "swipe"
        },
        {
          text: "Pop",
          url: "pop"
        },
        {
          text: "Form",
          url: "form"
        },
        {
          text: "Picker",
          url: "picker"
        }
      ]
    };
  },
  created() {
  }
};
</script>
<style lang="scss" scoped>
.list {
  // display: flex;
  padding: 0 20px;
  flex-wrap: wrap;
  background: #fff;
  font-size: 34px;

  li {
    border-bottom: 1px solid #eee;

    height: 100px;
    line-height: 100px;

    box-sizing: border-box;

    a {
      display: block;
      position: relative;

      i {
        position: absolute;
        right: 0px;
        top: 50%;
        transform: translateY(-50%);
      }
    }

  }
}
</style>

